package com.heima.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient//使Spring Cloud应用可以注册到服务发现服务器上，如Eureka，从而实现服务的自动发现和注册
@MapperScan("com.heima.user.mapper")// 用于扫描指定包下的MyBatis映射器接口，以将它们自动注册为Spring管理的Bean
public class UserApplication {

	public static void main(String[] args) {
		SpringApplication.run(UserApplication.class,args);
	}
}